package com.zeroone.star.sample.service;

import com.zeroone.star.project.dto.PageDTO;
import com.zeroone.star.project.dto.sample.SampleDTO;
import com.zeroone.star.project.query.sample.SampleQuery;
import com.zeroone.star.sample.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author 张大帅
 * @since 2024-10-14
 */
public interface IUserService extends IService<User> {
    /**
     * 根据用户名分页查询用户
     * @param condition 查询条件
     *
     */
    PageDTO<User> listAll(SampleQuery condition);

    /**
     * 功能描述: 根据id获取用户信息
     *
     * @param id 用户id
     * @return
     */

    SampleDTO getById(int id);
}
